<template>
    <div class="pageMain">
        <!-- 头部 -->
        <div class="header">
            <div class="leftArrow" @click='onClickLeft'>
                <van-icon size="20" name="arrow-left" />
            </div>
            <!-- 搜索栏 -->
            <div class="search">
                <van-search clearable class="searchInp" :left-icon='search2' shape="round" @input='inpChange(search)'
                    v-model="search" placeholder="输入您要搜的内容" />
            </div>
            <!-- 搜索按钮 -->
            <div @click="searchData" class="searchBtn">搜索</div>
        </div>

        <!-- 内容 -->
        <div class="content">
            <!-- 历史搜索 -->
            <template v-if="searchStatus">
                <div class="history">
                    <div class="history-title">历史搜索</div>
                    <div>
                        <span @click="searchItem(item.name)" v-for="(item, index) in historyList" :key="index">{{
                item.name }}</span>
                    </div>
                    <div class="deleteData" @click="deleteData">清空
                        <van-icon size="14" name="delete-o" />
                    </div>
                </div>
                <div v-if="historyList.length == 0" class="none-search">暂无搜索记录...</div>
                <!-- 暂无内容 -->
            </template>
            <!-- 改版 搜索结果 开始 -->
            <div class="searchResult" v-if="topicList.length != 0">
                <van-list v-model="moreLoading" ref="listRef" :immediate-check="false" :finished="loadFinsh"
                    finished-text="没有更多了" @load="searchData('more')">
                    <div :class="item.topicFlag == 1 ? 'new-card card' : 'card'" v-for="(item, iIndex) in topicList"
                        :key="iIndex" @click="toDetail(item)">
                        <!-- 医生说-->
                        <div v-if="item.topicFlag == 0">
                            <div class="infoCard">
                                <div class="titleBox1">
                                    <div>{{ item.topicTitle }}</div>
                                </div>
                                <div class="coverBox">
                                    <img class="bigImg" :src="alPath + 'zhonghui/topic/' + item.topicCover" alt="">
                                </div>
                            </div>
                        </div>
                        <div class="card1" v-else>
                            <div class="widthValue">{{ item.topicTitle }}</div>
                            <div class="chatIcon">
                                <van-icon name="chat-o" />
                            </div>
                            <div class="banner">
                                <img :src="alPath + 'zhonghui/topic/' + item.topicCover" alt="">
                                <div class="video">
                                    <van-icon name="play-circle" />
                                </div>
                            </div>
                        </div>
                    </div>
                </van-list>
            </div>
            <!-- 改版 搜索结果 结束 -->


            <img v-if="topicList.length == 0 && !searchStatus" class="tip_content"
                src="../../assets/luntan/tip_content.png" alt="">

        </div>
    </div>

</template>

<script>
import { alPath } from "../../network/request";

import { getAppTopic } from '../../network/luntan'
export default {
    name: 'HomeR',
    data() {
        return {

            search2: require('../../assets/luntan/search_2.png'),
            alPath: alPath,
            isShow: false, //遮罩
            search: '',
            topicList: [],

            historyList: [],
            tips: false,
            searchStatus: true,
            timer: null, //防抖定时器

            moreLoading: false,
            loadFinsh: false,
            page: 1


        }
    },
    mounted() {

    },
    methods: {
        // 搜索框搜索 --防抖
        inpChange: function (value) {
            clearTimeout(this.timer)
            this.timer = setTimeout(() => {
                // 发送获取搜索信息的请求
                value ? this.searchData() : "";
            }, 500)
            // 搜索框数据为空
            if (value.length == 0) {
                this.page = 1
                // 显示搜索历史
                this.searchStatus = true
                // 清空搜索获取的数据
                this.topicList = []
            }
        },
        deleteData: function () {
            this.$dialog.confirm({
                title: '提示',
                message: '是否清空搜索记录?',
            })
                .then(function () {
                    this.historyList = [];
                    localStorage.removeItem('historyList');
                    this.$toast('已清空')
                })
                .catch(function () {
                    // on cancel
                });
        },
        searchItem: function (val) {
            this.search = val;
            this.searchData();
        },
        onClickLeft: function () {
            this.$router.go(-1)
        },
        toDetail: function (item) {
            if (item.topicFlag == 0) {
                localStorage.topic_id = item.topicId;
                this.$router.push('/forumKonwledge')
            } else {
                localStorage.hv_id = item.topicId;
                this.$router.push('/videoDetail')
            }

        },
        // 发送搜索请求
        searchData: function (status) {
            if (status == 'more' && this.loadFinsh) {
                return
            }
            if (this.search.length == 0) {
                return this.$toast('请输入搜索内容!')
            }
            this.searchStatus = false;
            if (JSON.stringify(this.historyList).indexOf(JSON.stringify(this.search)) == -1) {
                this.historyList.push({
                    name: this.search
                });
            }



            getAppTopic({
                page: this.page,
                size: 2,
                topicTitle: this.search
            }).then(res => {
                if (res.flag) {

                    this.topicList.push(...res.data.list)
                    this.loadFinsh = this.topicList.length < 2

                    if (!this.loadFinsh) {
                        this.page += 1
                    }



                    console.log(this.topicList);

                    var arr = [];
                    var obj = {};
                    for (var i = 0; i < this.historyList.length; i++) {
                        if (!obj[this.historyList[i].name]) {
                            arr.push(this.historyList[i]);
                            obj[this.historyList[i].name] = true;
                        }
                    }
                    localStorage.historyList = JSON.stringify(arr);
                }
            })

        },

    },
    created() {
        localStorage.historyList ? this.historyList = JSON.parse(localStorage.historyList) : this.historyList = [];
    },
    //计算属性
    computed: {

    },
    filters: {
        // 将时间转化成月日的形式
        handleDate(str) {
            if (str != undefined) {
                let textMon = str.slice(5, 10).split('-')[0]
                if (textMon.split('')[0] == 0) {
                    textMon = textMon.split('')[1]
                }
                let textDay = str.slice(5, 10).split('-')[1]
                return textMon + '月' + textDay + '日'
            } else {
                return str
            }
        },
        // "00:00:23"
        // 处理视频播放时间
        handleDuration(str) {
            if (str.split(':')[0] == '00') {
                return str.slice(3)
            } else {
                return str
            }
        }
    }

}

</script>

<style lang='less' scoped>
.header {
    box-sizing: border-box;
    padding: 10px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 800;
}

.van-nav-bar__title {
    font-size: 34px !important;
}

.search {
    width: 560px;
    box-sizing: border-box;
    /* padding: 0px 12px; */
    z-index: 88;
}

.searchBtn {
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #333333;
}

/deep/.van-field__left-icon {
    margin-top: 8px;
}

.van-cell__value {
    height: 60px;
    line-height: 60px;
}

::placeholder {
    color: #999 !important;
    font-size: 32px !important;
}

.van-field__body {
    padding-left: 10px;
}

.content {
    position: relative;
    padding: 120px 0 0;
}

.tip_content {
    width: 344px;
    display: block;
    margin: 100px auto;
}


.pageMain {
    background: #f2f2f2;
    height: 100vh;
    overflow-y: scroll;
}

.forum1 {
    position: relative;
    box-sizing: border-box;
    padding: 0 32px 20px 32px;
    background-color: #fff;
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum {
    background: #f2f2f2;
}

.forum-btn1 {
    display: flex;
    align-items: center;
    height: 36px;
    color: #fff;
    font-weight: bold;
    background: #FF4E5E;
    font-size: 24px;
    justify-content: center;
    float: left;
    position: absolute;
    right: 32px;
    top: 20px;
    border-radius: 20px;
    padding: 0 8px 0 12px;
}

.forum-title1 {
    font-weight: bold;
    font-size: 24px;
    padding-top: 20px;
    line-height: 28px;
    margin-bottom: 16px;
    padding-right: 240px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.forum-btn1>div {
    height: 24px;
}

.forum-length1 {
    height: 64px;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.forum-length1>div {
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.forum-length1>div:nth-child(1) {
    box-sizing: border-box;
    margin-right: 4px;
    padding-left: 44px;
    background: linear-gradient(90deg, #2AB7FA 0%, #61C8F9 100%);
}

.forum-length1>div:nth-child(2) {
    display: flex;
    flex-flow: row-reverse;
    padding-right: 44px;
    background: linear-gradient(90deg, #FC7984 0%, #FF4E5E 100%);
}

.vstitle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 24px;
    position: relative;
}

.vstitle img {
    width: 76px;
    height: 42px;
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -38px;
}

.vstitle>div {
    width: 50%;
    box-sizing: border-box;
    font-size: 36px;
    font-weight: bold;
}

.vstitle>div:nth-child(1) {
    display: flex;
    flex-flow: row-reverse;
    padding-right: 72px;
    color: #53C4F9;
}

.vstitle>div:nth-child(3) {
    display: flex;
    padding-left: 64px;
    color: #FF4E5E;
}


.shopName {
    width: 100%;
    text-align: center;
    padding-top: 32px;
    font-size: 52px;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: Alibaba PuHuiTi;
    color: #FFFFFF;
}

.handleBox {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.searchImg {
    position: relative;
    right: 20px;
    width: 34px;
    height: 36px;
}

.userImg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.fabu {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 46px;
}

.fabu img {
    margin-right: 12px;
    width: 26px;
    height: 26px;
}

.sign {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 28px;
    display: flex;
    align-items: center;
}

.sign img {
    width: 36px;
}


.my-swipe {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
    width: 702px;
    height: 268px;
    /* position: absolute; */
    width: 100%;
    /* left: 0; */
    /* top: 220px; */
}

.cellImg {
    width: 100%;
    height: 100%;
}

.van-swipe-item {
    padding: 0 24px;
    box-sizing: border-box;
}

.my-swipe img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 16px;
}

.navBtnBox {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0 24px;
    width: 100%;
    height: 180px;
}


.textBg {
    position: absolute;
    top: 50px;
    left: 180px;
    width: 176px;
    height: 82px;
}


.rightBtn {
    position: relative;
    width: 39%;
    height: 180px;
    /* background: linear-gradient(220deg, #E51C39 0%, #FA5069 81%); */
    border-radius: 14px;


}

.rightBtn>img {
    width: 100%;
    height: 100%;
}

.rightTit {
    position: absolute;
    top: 76px;
    left: 116px;
    width: 142px;
    height: 34px;
}

.rightImg {
    position: absolute;
    top: 52px;
    left: 16px;
    width: 88px;
    height: 82px;
}

.template {
    position: relative;
}

.title {
    font-size: 32px;
    font-weight: bold;
    line-height: 36px;
    margin-bottom: 24px;
}

.more {
    position: absolute;
    right: 0px;
    top: 4px;
    font-size: 24px;
    color: #666;
    display: flex;
    align-items: center;
    z-index: 22;
}

.doctor-box {
    display: flex;
    background-color: #fff;
    border-radius: 16px;
    padding: 32px 0;
    position: relative;
    font-size: 24px;
    color: #666;
    margin-bottom: 24px;
    min-height: 84px;
    overflow-x: scroll;
    box-shadow: 0 4px 6px #f0f0f0;
}

.doctor-box>div {
    position: relative;
    padding-left: 140px;
    width: 50%;
    max-width: 50%;
    min-width: 50%;
    box-sizing: border-box;
    padding-right: 24px;
}

.doctor-box>div>div {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.doctor-box>div>div:nth-child(1) {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    padding-top: 4px;
}

.doctor-box>div>div:nth-child(2) {
    padding-top: 8px;
}

.doctor-box>div img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    position: absolute;
    left: 24px;
    top: 0;
    background-color: #f0f0f0;
}

.doctor-box>div::before {
    width: 2px;
    height: 84px;
    position: absolute;
    right: -2px;
    top: 0;
    content: '';
    background-color: #dcdcdc;
}

.doctor-box>div:nth-child(2) {
    padding-left: 140px;
}

.doctor-box>div:nth-child(2) img {
    left: 24px;
}

/* 改版 全部 医生说 */
.infoCard {
    box-sizing: border-box;
    /* padding: 17px 0px ; */
    /* margin-bottom: 7px; */
    width: 100%;
    background-color: #fff;
}

.docInfo {
    margin-bottom: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    /* background: #fff; */
}

.chatIcon {
    position: absolute;
    bottom: 24px;
    left: 48px;
}

.docInfoLeft {
    width: 460px;
}

.docInfoLeft img {
    margin-right: 20px;
    float: left;
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.docName {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #333333;
}

.docTag {
    font-size: 24px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #666666;
}

/* 精选标签 */
.jingxuan {
    padding: 2px 6px;
    display: inline-block;
    width: 80px;
    height: 32px;
    background: #1F89FA;
    border-radius: 2px;
    font-size: 24px;
    font-family: Alibaba PuHuiTi;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 2px;
}

.jingxuan img {
    float: right;
    margin: 6px 0px 2px 4px;
    width: 18px;
    height: 24px;
    border-radius: 0 !important;
}

/* 主推标签 */
.zhutui {
    padding: 2px 6px;
    display: inline-block;
    width: 80px;
    height: 32px;
    background: #FBB349;
    border-radius: 2px;
    font-size: 24px;
    font-family: Alibaba PuHuiTi;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 2px;
}

.zhutui img {
    float: right;
    margin: 6px 0px 2px 4px;
    width: 18px;
    height: 24px;
    border-radius: 0 !important;
}

.docInfoRight {
    position: relative;
}

.docInfoRight div {
    position: absolute;
    top: -40px;
    right: 0px;
    width: 140px;
    text-align: right;
    font-size: 24px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #999999;
}

.titleBox {
    margin-bottom: 28px;
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #333333;
}

.titleBox1 {
    position: relative;
    width: 100%;
    margin-bottom: 28px;
    font-size: 36px;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #333333;
}

.titleBox1>div:first-child {
    width: 84%;

}

.dateTip1 {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 140px;
    text-align: right;
    font-size: 24px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #999999;
}

.bigImg {
    width: 100% !important;
    height: 328px !important;
}

.zhutuiContent {
    display: flex;
    width: 100%;
    height: 144px;
}

.zhutuiImg {
    margin-left: 34px;
    width: 312px;
    height: 144px;
    border-radius: 16px;
}

.zhutuiContentLeft {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.zhuituiTitle {
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #333333;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

}

.coverBox {
    position: relative;
    margin-bottom: 28px;
    width: 100%;
}

.coverBox img {
    width: 100%;
    height: 100%;
}

.doclogo span {
    padding: 8px 12px;
    width: 164px;
    height: 40px;
    background: #E5F9F4;
    border-radius: 8px;
    font-size: 24px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #04B38A;
}

.overBox {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 192px;
    background-color: #F2F2F2;
    opacity: 0.7;
    margin-bottom: 28px;
}

.videoDuration {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 106px;
    height: 40px;
    border-radius: 20px;
    background-color: #333;
    font-size: 24px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #FFFFFF;

}

.card {
    background-color: #fff;
    border-radius: 16px;
    /* padding: 12px; */
    padding: 24px 24px 20px;
    position: relative;
    min-height: 192px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    justify-content: space-between;
    box-shadow: 0 4px 6px #f0f0f0;
}

/* .card1{
	padding: 0 12px;
} */



/* .card1  */
.card1>div:nth-child(1) {
    font-weight: bold;
    font-size: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    padding-right: 344px;
}

.tit {
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #333333;
}

.card1>div:nth-child(2) {
    color: #ff4e5e;
    font-size: 32px;
    height: 32px;
}

.card1>div:nth-child(2) img {
    width: 24px;
}

.banner {
    position: absolute;
    width: 312px !important;
    height: 144px !important;
    right: 24px;
    top: 24px;
}

.banner img {
    position: absolute;
    width: 100% !important;
    height: 100% !important;
    left: 0;
    top: 0;
    border-radius: 16px;
    display: block;
}

.video {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 70px;
    color: #fff;
}

.doctor-img {
    position: absolute;
    width: 84px;
    height: 84px;
    right: 356px;
    bottom: 24px;
}

.icon1 {
    width: 48px;
}

.icon2 {
    width: 44px;
}












.btn-box img {
    margin-right: 8px;
}

.new-card {
    flex-direction: column;
    height: 456px !important;
    justify-content: center !important;
    padding-bottom: 88px !important;
}

.widthValue {
    width: 100%;
}

.new-card>div:nth-child(1) {
    padding-right: 0 !important;
    -webkit-line-clamp: 1 !important
}

.new-card>div:nth-child(2) {
    padding-right: 0 !important;
    bottom: 20px;
    position: absolute;
}

.new-card .banner {
    position: relative !important;
    width: 100% !important;
    height: 300px !important;
    /* padding: 0 12px !important; */
}

.new-card .banner img {
    width: 100%;
    position: relative !important;
    object-fit: cover;
    left: 24px;
}

.new-card .video {
    top: 0;
    left: 24px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    font-size: 100px !important;
}

.doctors-class>div:nth-child(1) {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
}

.doctors-class>div:nth-child(1)::before {
    background: transparent !important;
}

.tosend {
    position: fixed;
    right: 0;
    bottom: 200px;
    color: #fff;
    width: 100px;
    height: 100px;
    background: #FF3B14;
    opacity: 0.8;
    border-radius: 100px;
    z-index: 88;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    line-height: 24px;
}

.border-none>div:nth-child(2)::before {
    width: 0 !important;
}

.back-top {
    position: fixed;
    bottom: 96px;
    z-index: 888;
    right: 0;
    width: 100px;
    box-shadow: 2px 6px 6px #dcdcdc;
    height: 100px;
    display: block;
    border-radius: 50%;
}

.none-doctor {
    height: 148px;
    text-align: center;
    line-height: 150px;
    background-color: #fff;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 24px;
    color: #666;
}

.van-notice-bar__content {
    display: flex;
}

::-webkit-scrollbar {
    display: none;
}


.new-doing>div {

    position: relative;
}

.new-item {
    padding-left: 132px;
    position: relative;
    border-right: 2px solid #f2f2f2;
    padding-right: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 440px;
    min-width: 440px;
    max-width: 440px;
    box-sizing: border-box;
}

.new-item img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    position: absolute;
    left: 24px;
    top: 0;
    background-color: #f0f0f0;
}

.new-item>div:nth-child(1) {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.new-item>div:nth-child(2) {
    font-size: 24px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.active-box>div {
    width: 100%;
    border-radius: 16px;
    height: 120px;
}

.sign-in {
    background-color: #FFDDD5;
    position: relative;
    overflow: hidden;
    color: #FF3B14;
    font-weight: bold;
}

.column {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.sign-in img {
    width: 100%;
    display: block;
    height: 100%;
}

.column>div {
    width: 49%;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    font-weight: bold;
    padding-top: 2vw;
    position: relative;
    font-size: 4.2vw;
}

.column>div:nth-child(1) {
    background-color: #FFF3C8;
    color: #FF7C06;
}

.column>div:nth-child(2) {
    background-color: #D7EFFE;
    color: #0680FA;
}

.icon-img {
    position: absolute;
    right: 0;
    bottom: 0;
}

.luntan_one_bg {
    width: 31.48vw;
    height: 21.34vw;
    display: block;
}

.luntan_two_bg {
    width: 17.6vw;
    height: 12.27vw;
    display: block;
}

.luntan_one_icon {
    width: 18.68vw;
    position: absolute;
    bottom: 20px;
    right: 24px;
    display: block;
    height: 17.08vw;
}

.luntan_two_icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: block;
    width: 11.74vw;
}

.sign-in>div:nth-child(1) {
    padding-left: 3.2vw;
    padding-top: 2vw;
    position: relative;
    font-size: 4.2vw;
}

.sign-in>div:nth-child(2) {
    padding-left: 3.2vw;
    position: relative;
    font-size: 3.4vw;
    color: #666;
    font-weight: 400;
    padding-top: 1vw;
}

.go-icon {
    height: 4.82vw;
    line-height: 4.82vw;
    width: 13.88vw;
    border: 2px solid #ff3b14;
    border-radius: 4.82vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 3.6vw;
    margin-left: 3.2vw;
    font-size: 4vw;
}

.yellow {
    border: 1px solid #FF7C06;
    margin-top: 1.8vw;
}

.blue {
    border: 1px solid #0680FA;
    margin-top: 1.8vw;
}

.go-icon>div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4.82vw;
    line-height: 4.82vw;
}

.column>div>div:nth-child(1) {
    padding-left: 3.2vw;
}

.alert-mask {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
    background: rgba(0, 0, 0, .4);
    width: 100%;
    height: 100%;
}

.alert {
    position: absolute;
    top: 44%;
    left: 50%;
    display: block;
    width: 640px;
    height: 800px;
    margin-left: -320px;
    margin-top: -400px;
    border-radius: 16px;
}

.alert-img {
    display: block;
    width: 100%;
    height: 100%;
}

.alert-close-btn {
    position: absolute;
    bottom: -136px;
    left: 50%;
    font-size: 56px;
    font-weight: bold;
    color: #FFF;
    margin-left: -28px;
    z-index: 100;
}

.mainContent {
    height: 1000px;
}

.change {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
}

.change>div {
    display: flex;
    align-items: center;
    height: 32px;
    font-weight: bold;
    font-size: 24px;
}

.forum-card {
    position: relative;
    background-color: #fff;
    border-radius: 16px;
    padding: 32px 24px 88px 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px #f2f2f2;
}

.pk-title {
    background-color: #fefbdb;
    font-size: 30px;
    font-weight: bold;
    box-sizing: border-box;
    padding: 0 32px 0 24px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pk-cont {
    min-width: 100%;
    display: flex;
    color: #fff;
    font-size: 30px;
    position: relative;
    font-weight: bold;
    padding-top: 32px;
    justify-content: space-between;
    /* overflow: hidden; */
    /* box-shadow: 0 4px 5px #dcdcdc; */
    /* border-radius: 16px; */
}

.pk-cont img {
    width: 76px;
    height: 40px;
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -38px;
    top: 44px;
}

.pk-cont>div {
    width: calc(50% - 40px);
    text-align: center;
    height: 64px;


    line-height: 64px;
    position: relative;
    box-shadow: 0 8px 6px -2px #dcdcdc;
}

.pk-cont>div:nth-child(1) {
    background-color: #2AB7FA;
    border-radius: 32px 0 0 32px;
}

.pk-cont>div:nth-child(3) {
    background-color: #FF4E5E;
    border-radius: 0 32px 32px 0;
}

.pk-btn {
    display: flex;
    flex-flow: row-reverse;
    align-items: center;
    width: 220px;
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    justify-content: center;
    border-radius: 24px;
    padding-left: 12px;
    position: absolute;
    right: 8px;
    bottom: 24px;
    height: 44px;
    color: #666;
}

.pk-btn>div {
    padding-top: 4px;
}

/* .pk-icon2::after {
	position: absolute;
	content: '';
	width: 0;
	height: 0;
	border-bottom: 38px solid #FF4E5E;
	border-left: 12px solid transparent;
	left: -11px;
	top: -4px;
} */
.pk-icon2::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0px 0 76px 24px;
    border-color: transparent #ffffff;
    /* border-top: 12px solid #2AB7FA; */
    left: -2px;
    /* border-right: 38px solid transparent; */
    top: -2px;
}

/* .pk-icon1::after {
	position: absolute;
	content: '';
	width: 0;
	height: 0;
	border-top: 38px solid #2AB7FA;
	right: -11px;
	border-right: 12px solid transparent;
	top: 0;
} */
.pk-icon1::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 76px 24px 0px 0;
    border-color: transparent #ffffff;
    /* border-top: 12px solid #2AB7FA; */
    right: -2px;
    /* border-right: 38px solid transparent; */
    top: -4px;
}

.pk-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    padding: 20px 0;
}

.pk-between>div {
    display: flex;
    align-items: center;
    height: 40px;

    font-weight: bold;
    font-size: 24px;
}





.pk-between img {
    width: 32px;
    margin-right: 8px;
}

.pk-between>div>div {
    height: 40px;
    display: flex;
    align-items: center;
}

.pk-between>div:nth-child(1) {
    color: #2AB7FA;
}

.pk-between>div:nth-child(2) {
    color: #FF4E5E;
}

.pk-data {
    position: relative;
    height: 32px;
    font-size: 28px;
    padding: 0 80px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.pk-data>div:nth-child(1) {
    position: absolute;
    left: 0;
    top: 0;
    color: #2AB7FA;
}

.pk-data>div:nth-child(3) {
    top: 0;
    position: absolute;
    right: 0;
    color: #FF4E5E;
}

.pk-length {
    height: 8px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
}

.pk-length>div {
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.pk-length>div:nth-child(1) {
    background-color: #2AB7FA;
}

.pk-length>div:nth-child(1)::before {
    position: absolute;
    content: '';
    right: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #fff;
}

.pk-length>div:nth-child(2) {
    background-color: #FF4E5E;
}

.pk-length>div:nth-child(2)::before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #fff;
}

.pk-icon1,
.pk-icon2 {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 0 12px;
    /* overflow: hidden; */
}

.pk-icon1>div,
.pk-icon2>div {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.nav-tab {
    position: fixed;
    width: 100%;
    z-index: 200;
    bottom: 0;
    left: 0;
    display: flex;
    height: 100px;
    background-color: #fff;
    color: #929292;
}

.nav-tab>div {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.nav-tab>div>div {
    font-size: 24px;
}

.mui-icon {
    font-size: 48px !important;
}

.nav-active {
    color: #ff3b14;
}

.ce {
    background-color: #929292;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: 20px;
    border: 14px solid #fff;
}

.ce img {
    width: 44px;
    height: 44px;
    display: block;
}

.red-dian {
    position: relative;
}

.red-dian::before {
    position: absolute;
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 100px;
    background-color: #ff3b14;
    right: 50%;
    margin-right: -24px;
    top: 16px;
}

.van-tabs__line {
    background-color: #FF8F14;
}

.van-tabs__wrap {
    height: 60px !important;
}

.van-tab {
    width: 150px !important;
    box-sizing: border-box !important;
}

/* .van-sticky--fixed {
	padding: 0 12px !important;
} */

.music {
    position: relative !important;
    padding: 12px 120px 24px 160px !important;
    box-shadow: 0 4px 6px #f0f0f0 !important;
    margin-bottom: 32px !important;
    height: 160px !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
}

.music div {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.hv_id {
    font-size: 28px !important;
    margin-bottom: 12px;
}

.hv_synopsis {
    font-size: 24px !important;
    color: #999 !important;
}

.musicimg,
.musicbox {
    width: 120px !important;
    height: 120px !important;
    position: absolute !important;
    left: 0 !important;
    border-radius: 8px !important;
    top: 0px !important;
}

.musicbox {
    top: 20px !important;
}

.music>div:nth-child(4) {
    position: absolute !important;
    right: 32px !important;
    font-size: 60px !important;
    color: #666 !important;
    top: 50px !important;
}

.van-list {
    /* padding-top: 24px; */
    padding-bottom: 100px;
    /* width: 100%; */
    /* min-height: 1600px; */
    /* background-color: #F2F2F2; */
}


.pageCon {
    background: #f2f2f2;
    height: 100vh;

}























.van-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000 !important;
}







.stemCellArticleList,
.stemCellCase {
    height: 48%;
    box-shadow: 0px 2px 8px 0px rgba(47, 47, 47, 0.14);
    border-radius: 10px;
    background-color: #F3F7FC;

}














.listImg {
    width: 56px;
    height: 66px;
}


.btnImgBox {
    position: absolute;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;

}

.btnImgBox>img:first-child {
    margin-bottom: 32px;
    width: 410px;
    height: 108px;
}

.btnImgBox>img:last-child {
    width: 220px;
    height: 52px;
    animation: round_animate 1s linear infinite;
    -webkit-animation: round_animate 1s linear infinite;
}

@keyframes round_animate {
    0% {
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
    }

    50% {
        transform: scale(1.2);
        -webkit-transform: scale(1.2);
        -moz-transform: scale(1.2);
        -ms-transform: scale(1.2);
        -o-transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


.enterBox {
    box-sizing: border-box;
    margin: 0% auto 24px;
    width: 100%;
    padding: 0 24px;
}

.enterBox>img {
    width: 100%;
    border-radius: 16px;

}



.history>div:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
}

.history-title {
    font-weight: bold;
    line-height: 40px;
    font-size: 28px;
}

.history span {
    background-color: #fff;
    border-radius: 32px;
    padding: 8px 16px;
    position: relative;
    margin-right: 24px;
    margin-top: 24px;
    font-size: 24px;
    color: #666;
}

.none-search {
    position: relative;
    text-align: center;
    line-height: 160px;
    font-size: 24px;
    color: #666;
}

.history {
    position: relative;
    padding: 0 48px;
    margin-top: 20px;
}

.deleteData {
    display: flex;
    align-items: center;
    right: 26px;
    position: absolute;
    top: 8px;
    font-size: 24px;
    height: 24px;
    color: #666;
}
</style>